//logs.js
const util = require('../../utils/util.js')
const { $Toast } = require('../../dist/base/index');
var api = require('../../config/api.js');
const app = getApp();

Page({
  data: {
    loading:false,

    /*表单参数*/
  },
  onLoad: function (options) {
  },

  onShow: function () {
  },


  submit(e){
    let self = this;
    util.request(api.SubmitNew, {
    }, 'POST').then(res => {
      if (res.success) {
        $Toast({
          content: res.msg,
          type: 'success'
        });
        setTimeout(function () {
          wx.navigateBack();
        }, 1500)
      }else{
        $Toast({
          content: res.msg,
          type: 'error'
        });
      }
    }).catch(err => {
    });
  }

})
